﻿<%@ WebHandler Language="C#" Class="DeleteUser" %>

using System;
using System.Web;

public class DeleteUser : AdminHandler
{

    public override void ProcessRequest(HttpContext context)
    {
        context.Response.ContentType = "text/plain";
        if (IsAuthenticate(context))
        {
            if (IsAuthenticate(context))
            {
                try
                {
                    int ui = 0;
                    if (context.Request.QueryString["ui"] != null)
                        ui = int.Parse(context.Request.QueryString["ui"].ToString());

                    FiveSister.BAL.User obj = new FiveSister.BAL.User().Delete(ui);
                    context.Response.Write("OK");
                }
                catch (Exception ex)
                {
                    PMSA.Framework.Log.CLogManager.Write("DeleteGroupNews.ashx", ex.ToString(), "ADMIN");
                    context.Response.Write("FAIL");
                }
            }
        }
    }
    public bool IsReusable {
        get {
            return false;
        }
    }

}